package com.jiaai.gift.api;

import com.jiaai.exception.ServerException;
import com.jiaai.gift.model.BGift;
import com.jiaai.gift.model.GiftVO;
import com.jiaai.gift.model.VGiftItemVO;
import com.jiaai.gift.model.VGiftType;

/**
 * <p>
 * TODO
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title GiftServer
 * @since 2017/10/9
 */
public interface IGiftApi {



    /**
     * 赠送礼物
     * @param gift
     */
    Object bestowed(BGift gift)throws ServerException;




    /**
     * 获取全部的礼物
     * @return
     */
    Object findByAll()throws  ServerException;

    /*
    ==========================================后台================================
     */

    /**
     * 获取全部的礼物
     * @return
     */
    Object allGift(Integer curr,VGiftItemVO vGiftItemVO)throws  ServerException;

    Object allGiftType(VGiftType vGiftType) throws Exception;
    Object addGiftType(VGiftType vGiftType) throws Exception;

    Object addGift(VGiftItemVO vGiftItemVO) throws Exception;

    Object getMyAll(Integer curr,GiftVO giftVO)throws  ServerException;

    /**
     * 导出礼物的excel
     * @param vGiftItemVO
     * @return
     */
    Object getExcelGift(VGiftItemVO vGiftItemVO) throws Exception;
    /**
     * 导出我送出礼物的excel
     * @param giftVO
     * @return
     */
    Object toGift(GiftVO giftVO) throws Exception;
    /**
     * 导出我收到礼物的excel
     * @param giftVO
     * @return
     */
    Object getGift(GiftVO giftVO) throws Exception;

}
